<?php
/**
 * Feedback_AdminController
 * 
 * @author
 * @version 
 */
 
class Customblock_AdminController extends Zen_Controller_Admin
{
	public $columns = array(
                       	array('name'=>'id','index'=>'id','label'=>'ID','width'=>30),
                       	array('name'=>'label','index'=>'label','label'=>'Название'),
                    );
	
	
    public function indexAction() {
		$this->view->model=new Customblock_Model_Item();
		$this->view->columns = $this->columns;
		$this->_helper->layout->setLayout('admin');
	}
	
	public function formAction(){
		$params=$this->_getAllParams();
		$this->_helper->jqgrid(
    		new Customblock_Model_Item(),
    		$params,
    		$this->columns,
    		new Customblock_Form_Item()
    	);
	}
	
}